package com.cq.hd.order.api.vo;



import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ActiveOrderStatisticsVo implements Serializable {

    @ApiModelProperty(value = "有效订单=全部订单-已取消订单")
    private Integer validOrderNum = 0;


    @ApiModelProperty(value = "订单总金额=有效订单实付金额总和")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt = BigDecimal.ZERO;


    @ApiModelProperty(value = "预估补贴=有效订单未过期的营销补贴+佣金补贴+红包补贴总和")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal estimateSubsidyAmt = BigDecimal.ZERO;

    @ApiModelProperty(value = "成团数量")
    private Integer successfulGroupOrderNum;

}
